/*
 * Copyright 2016-2019 yoara
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package yhao.infra.feature.payment.core.wxpay.model;

import java.util.UUID;

/**
 * 微信支付请求基本封装对象
 *
 * @author yoara
 */
public class WxBasePostModel {
    //微信开放平台审核通过的应用APPID
    protected String appid;
    //微信支付分配的商户号
    protected String mch_id;
    //随机字符串，不长于32位。推荐随机数生成算法
    protected String nonce_str = UUID.randomUUID().toString().toUpperCase().replaceAll("-", "");
    //签名，详见签名生成算法
    protected String sign;

    public String getAppid() {
        return appid;
    }

    public String getMch_id() {
        return mch_id;
    }

    public String getNonce_str() {
        return nonce_str;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }
}
